ga.core.individual
Interface IAge

All Known Subinterfaces:
IAgeIndividual<T>
All Known Implementing Classes:
SimpleObjectIndividual

public interface IAge

Interface that adds aging function to an individual.

Since:
11.08.2012
Author:
Stephan Dreyer

Method Summary
 int getAge()
          Getter for the age.
 float getAgeNormalized()
          Getter for the normalized age (in [0;1]).
 void incAge()
          Increments the age.
 boolean isOld()
          Determines if the individual is too old and should die.
 void setMaxAge(int maxAge)
          Setter for the maximum age.
 

Method Detail

getAge

int getAge()
Getter for the age.

Returns:
The age.
Since:
11.08.2012

incAge

void incAge()
Increments the age.

Since:
11.08.2012

isOld

boolean isOld()
Determines if the individual is too old and should die.

Returns:
Old
Since:
11.08.2012

getAgeNormalized

float getAgeNormalized()
Getter for the normalized age (in [0;1]).

Returns:
The normalized age.
Since:
11.08.2012

setMaxAge

void setMaxAge(int maxAge)
Setter for the maximum age.

Parameters:
maxAge - The maximum age
Since:
11.08.2012